package model

import "encoding/xml"

// 定义 XML 结构体
type TV struct {
	XMLName    xml.Name    `xml:"tv"`
	InfoName   string      `xml:"info-name,attr"`
	InfoURL    string      `xml:"info-url,attr"`
	Channels   []Channel   `xml:"channel"`
	Programmes []Programme `xml:"programme"`
}

type Channel struct {
	XMLName     xml.Name `xml:"channel"`
	ID          string   `xml:"id,attr"`
	DisplayName string   `xml:"display-name"`
}

type Programme struct {
	XMLName xml.Name `xml:"programme"`
	Channel string   `xml:"channel,attr"`
	Start   string   `xml:"start,attr"`
	Stop    string   `xml:"stop,attr"`
	Title   string   `xml:"title"`
}
